//package com.itheima.tlias84.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

///**
// * @Aspect标识切面类
// */
//@Aspect
//@Component
//@Slf4j
//public class LogAspect {
//
//    @Around("@annotation(com.itheima.tlias84.annotation.Log)")
//    public Object insertLog(ProceedingJoinPoint joinPoint){
//        //执行父类方法
//        try {
//            Object proceed = joinPoint.proceed();
//            log.info("插入{}方法插入日志",joinPoint.getSignature().getName());
//            return proceed;
//        } catch (Throwable e) {
//            throw new RuntimeException(e);
//        }
//    }
//
//
//
//}
